<!DOCTYPE html>
<html>
{include file="public/head" /}
<body>
          <div class="nav-tabs-custom" style="box-shadow:0 0 0 0; margin:5px;">
            <ul class="nav nav-tabs">
            <li class="active"><a href="#tab_1" data-toggle="tab">基本信息</a></li>
            <li><a href="#tab_2" data-toggle="tab">其他信息</a></li>   
            <li><a href="#tab_3" data-toggle="tab">关联信息</a></li>             
            </ul> 
<div class="box-body">
        <form id="myform" class="myform form-horizontal"  method="post">
        <input type="hidden" name="user_id" value="{$info['user_id']|default=''}">
          <div class="row">
          <div class="tab-content tab-fade fade active in " id="tab_1">
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">管理组：</span>
                </div>
                <!-- /btn-group -->
                <select name="group_id" class="form-control select2" style="width:100%">
		{volist name="group" id="item"}
<option value="{$item['id']}" {if isset($info['user_groupid']) && $item[ 'id']==$info['user_groupid']}selected{/if}>
                        {$item['title']}
                        </option>
		{/volist}
                </select>
              </div>
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">用户名：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="user_name" value="{$info.user_name|default=''}"  autocomplete="off"  required="required" placeholder="用户名必填">
              </div>           
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">昵称：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="user_nickname" value="{$info.user_nickname|default=''}"  autocomplete="off" >
              </div> 
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">密码：</span>
                </div>
                <!-- /btn-group -->
               <input type="password" class="form-control" name="user_password" value="" autocomplete="false" >
              </div>
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">头像：</span>
                </div>
                <!-- /btn-group -->
                <input id="c-image" class="form-control"  name="user_pic" type="text" value="{$info['user_pic']|default=''}">
<span class="input-group-btn">
                      <button type="button" class="btn btn-primary btn-flat plupload" id="plupload-image" data-input-id="c-image" data-mimetype="*"  data-multiple="false" data-preview-id="p-image" data-multipart='{"sid":"member","thumb":"1"}'><i class="fa fa-upload"></i> 上传</button>
                    </span>
              </div>
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">积分：</span>
                </div>
                <!-- /btn-group -->
                <input id="user_score" class="form-control  text-center"  name="user_score" type="text" value="{$info['user_score']|default='0'}" disabled>
              </div>            
                 <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">VIP时间：</span>
                </div>
                <!-- /btn-group -->
                <input id="user_viptime" class="form-control text-center"  name="user_viptime" type="text" value="{$info.user_viptime|date='Y-m-d H:i:s',###}" disabled>
              </div>                          
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">Email：</span>
                </div>
                <!-- /btn-group -->
               <input type="email" class="form-control" name="user_email" value="{$info.user_email|default=''}" autocomplete="false" autocomplete="off"  placeholder="邮箱必填,可作为登录帐号">
              </div>
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">站内订阅：</span>
                </div>
                <!-- /btn-group -->
          <select name="user_remind" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">
          <option value="1">开启</option>
          <option value="0" {eq name="info.user_remind" value="0" }selected{/eq}>关闭</option>
                </select>
              </div> 
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">邮箱验证状态：</span>
                </div>
                <!-- /btn-group -->
          <select name="user_isemail" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">           <option value="0">不需要验证</option>
            <option value="1" {eq name="info.user_isemail" value="1"}selected{/eq}>邮箱以验证</option>
			<option value="2" {eq name="info.user_isemail" value="2"}selected{/eq}>邮箱需要验证</option>
          </select>
              </div> 
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">手机验证状态：</span>
                </div>
                <!-- /btn-group -->
          <select name="user_mobile" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">           <option value="0">不需要验证</option>
            <option value="1" {eq name="info.user_mobile" value="1"}selected{/eq}>手机以验证</option>
			<option value="2" {eq name="info.user_mobile" value="2"}selected{/eq}>手机需要验证</option>
          </select>
              </div>                                           
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">手机号码：</span>
                </div>
                <!-- /btn-group -->
               <input type="text" class="form-control" name="user_mobile" value="{$info.user_mobile|default=''}">
              </div>            
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">签名：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->

               <textarea   name="user_signature"  style=" width:100%; height:100px">{$info['user_signature']}</textarea>

              </div>  
              
                                                                                              
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">用户状态：</span>
                </div>
                <!-- /btn-group -->
                <select name="user_status" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">
          <option value="1">已审</option>
          <option value="0" {eq name="info.user_status" value="0" }selected{/eq}>未审</option>
                </select>
              </div>   
              </div>  
              <!-- /.tab-content -->
              
          <div class="tab-content tab-fade fade" id="tab_2">
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">用户性别：</span>
                </div>
                <!-- /btn-group -->
                <select name="user_sex" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">
                        <option value="1">男</option>
                        <option value="2" {eq name="info.user_sex" value="2"}selected{/eq}>女</option>
                </select>
              </div>
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">出生日期：</span>
                </div>
                <!-- /btn-group -->
                <input class="form-control datetimepicker" name="user_birthday" value="{$info.user_birthday|default=''}" placeholder="出生日期" id="createtime" data-date-format="YYYY-MM-DD" type="datetime" style="text-align:center">
              </div>           
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">用户地区：</span>
                </div>
                <!-- /btn-group -->
<div id="cxselect">
<div class="col-md-4 col-sm-4 col-xs-4" style="padding-left:0px;">
<select class="province select2" data-first-title="选择省" name="user_prov" style=" width:100%">
<option value="">请选择</option>
<option value="{$info.user_prov|default=''}" selected="">{$info.user_prov|default=''}</option>
</select>
</div>
<div class="col-md-4 col-sm-4 col-xs-4" style="padding-left:0px;">
<select class="city select2" data-first-title="选择市" name="user_city" style=" width:100%">
<option value="">请选择</option>
<option value="{$info.user_city|default=''}" selected="">{$info.user_city|default=''}</option>
</select>
</div>
<div class="col-md-4 col-sm-4 col-xs-4" style="padding-left:0px; padding-right:0px;">
<select class="area select2" data-first-title="选择地区" name="user_area" style=" width:100%">
<option value="">请选择</option>
<option value="{$info.user_area|default=''}" selected="">{$info.user_area|default=''}</option>
</select>
</div>
</div>
              </div> 
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">用户学历：</span>
                </div>
                <!-- /btn-group -->
                   <select name="user_edu" class="form-control select2">
                  <option value="">选择学历</option>
                  <option value="1" {eq name="info.user_edu" value="1"}selected{/eq}>小学</option>
                  <option value="2" {eq name="info.user_edu" value="2"}selected{/eq}>初中</option>
                  <option value="3" {eq name="info.user_edu" value="3"}selected{/eq}>高中/中专</option>
                  <option value="4" {eq name="info.user_edu" value="4"}selected{/eq}>大专</option>
                  <option value="5" {eq name="info.user_edu" value="5"}selected{/eq}>本科</option>
                  <option value="6" {eq name="info.user_edu" value="6"}selected{/eq}>硕士及以上</option>
                    </select>
              </div>
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">用户职业：</span>
                </div>
                <!-- /btn-group -->
                    <select name="user_industry" class="form-control selectpicker">
                  <option value="">选择行业</option>
                  <option value="1"  {eq name="info.user_industry" value="1"}selected{/eq} >教育/学生</option>
                  <option value="2"  {eq name="info.user_industry" value="2"}selected{/eq}>计算机/互联网</option>
                  <option value="3"  {eq name="info.user_industry" value="3"}selected{/eq}>建筑</option>
                  <option value="4"  {eq name="info.user_industry" value="4"}selected{/eq}>金融/房产</option>
                  <option value="5"  {eq name="info.user_industry" value="5"}selected{/eq}>政府/公共服务</option>
                  <option value="6"  {eq name="info.user_industry" value="6"}selected{/eq}>电信/网络</option>
                  <option value="7"  {eq name="info.user_industry" value="7"}selected{/eq}>服务</option>
                  <option value="8"  {eq name="info.user_industry" value="8"}selected{/eq}>传媒/娱乐</option>
                  <option value="9"  {eq name="info.user_industry" value="9"}selected{/eq}>农林/化工</option>
                  <option value="10" {eq name="info.user_industry" value="10"}selected{/eq}>旅游/交通</option>
                  <option value="11" {eq name="info.user_industry" value="11"}selected{/eq}>其他</option>
                    </select>
                    </span>
              </div>
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">注册日期：</span>
                </div>
                <!-- /btn-group -->
                <input id="user_reg_time" class="form-control"  name="user_reg_time" type="text" value="{$info['user_reg_time']|date='Y-m-d H:i:s',###}" {notempty name="info.user_id"}disabled{/notempty}>
              </div> 
              
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">登录日期：</span>
                </div>
                <!-- /btn-group -->
                <input id="user_last_login_time" class="form-control"  name="user_last_login_time" type="text" value="{$info['user_last_login_time']|date='Y-m-d H:i:s',###}" {notempty name="info.user_id"}disabled{/notempty}>
              </div>
                 <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">注册IP：</span>
                </div>
                <!-- /btn-group -->
                <input id="user_reg_ip" class="form-control"  name="user_reg_ip" type="text" value="{$info['user_reg_ip']|long2ip}" {notempty name="info.user_id"}disabled{/notempty}>
              </div>  
              
                      <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">登录IP：</span>
                </div>
                <!-- /btn-group -->
                <input id="user_last_login_ip" class="form-control"  name="user_last_login_ip" type="text" value="{$info['user_last_login_ip']|long2ip}" {notempty name="info.user_id"}disabled{/notempty}>
              </div>                                      
               
               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">登录次数：</span>
                </div>
                <!-- /btn-group -->
               <input type="text" class="form-control" name="user_login" value="{$info.user_login|default='0'}" {notempty name="info.user_id"}disabled{/notempty}>
              </div>            
              </div>  
              <!-- /.tab-content -->              
              
           <div class="tab-content tab-fade fade" id="tab_3">
           <div class="col-md-6 col-sm-6 col-xs-6 mb15">
                 <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">剧情：</span>
                </div>
                <!-- /btn-group -->
                  <span class="text-link form-control">
                 共有({$info.part_count})条记录&nbsp;&nbsp;<a class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px" href="{:url('admin/part/index',array('uid'=> $info['user_id'],'view'=>1))}" data-name="管理会员{$info.user_name}的剧情"><i class="fa fa-commenting-o"></i> 管理剧情</a>   
                </span>                
              </div> 
              </div>
            <div class="col-md-6 col-sm-6 col-xs-6 mb15">
                 <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">角色：</span>
                </div>
                <!-- /btn-group -->
                  <span class="text-link form-control">
                 共有({$info.role_count})条记录&nbsp;&nbsp;<a class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px" href="{:url('admin/role/index',array('uid'=> $info['user_id'],'view'=>1))}" data-name="管理会员{$info.user_name}的角色"><i class="fa fa-commenting-o"></i> 管理角色</a>   
                </span>                 
              </div> 
              </div>             
             <div class="col-md-6 col-sm-6 col-xs-6 mb15">
                 <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">话题：</span>
                </div>
                <!-- /btn-group -->
                  <span class="text-link form-control">
                 共有({$info.theme_count})条记录&nbsp;&nbsp;<a class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px" href="{:url('admin/theme/index',array('uid'=> $info['user_id'],'view'=>1))}" data-name="管理会员{$info.user_name}的话题"><i class="fa fa-commenting-o"></i> 管理话题</a>   
                </span>                
              </div> 
              </div>
                             
           <div class="col-md-6 col-sm-6 col-xs-6 mb15">
                 <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">台词：</span>
                </div>
                <!-- /btn-group -->
                    <span class="text-link form-control">
                 共有({$info.lines_count})条记录&nbsp;&nbsp;<a class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px" href="{:url('admin/lines/index',array('uid'=> $info['user_id'],'view'=>1))}" data-name="管理会员{$info.user_name}的台词"><i class="fa fa-commenting-o"></i> 管理台词</a>   
                </span>               
              </div> 
              </div>
           <div class="col-md-6 col-sm-6 col-xs-6 mb15">
                 <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">歌曲：</span>
                </div>
                <!-- /btn-group -->
                    <span class="text-link form-control">
                 共有({$info.music_count})条记录&nbsp;&nbsp;<a class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px" href="{:url('admin/music/index',array('uid'=> $info['user_id'],'view'=>1))}" data-name="管理会员{$info.user_name}的音乐"><i class="fa fa-commenting-o"></i> 管理音乐</a>   
                </span>               
              </div> 
              </div>              
           <div class="col-md-6 col-sm-6 col-xs-6 mb15">
                 <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">订阅：</span>
                </div>
                <!-- /btn-group -->
                 <span class="text-link form-control">
                 共有({$info.remind_count})条记录&nbsp;&nbsp;<a class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px" href="{:url('vod',array('uid'=> $info['user_id'],'sid'=>'remind'))}" data-name="管理会员{$info.user_name}的订阅"><i class="fa fa-commenting-o"></i> 管理订阅</a>   
                </span>                
              </div> 
              </div>                                                
           <div class="col-md-6 col-sm-6 col-xs-6 mb15">
                 <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">收藏：</span>
                </div>
                <!-- /btn-group -->
                <span class="text-link form-control">
                 共有({$info.favorite_count})条记录&nbsp;&nbsp;<a class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px" href="{:url('vod',array('uid'=> $info['user_id'],'sid'=>'favorite'))}" data-name="管理会员{$info.user_name}的收藏"><i class="fa fa-commenting-o"></i> 管理收藏</a>   
                </span>      
              </div> 
              </div>
           <div class="col-md-6 col-sm-6 col-xs-6 mb15">
                 <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">评论：</span>
                </div>
                <!-- /btn-group -->
                <span class="text-link form-control">
                 共有({$info.comment_count})条评论&nbsp;&nbsp;<a class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px" href="{:url('admin/cm/index',array('uid'=> $info['user_id'],'view'=>1))}" data-name="管理会员{$info.user_name}的评论"><i class="fa fa-commenting-o"></i> 管理评论</a>   
                </span>            
              </div> 
              </div>                      
           <div class="col-md-6 col-sm-6 col-xs-6 mb15">
                 <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">留言：</span>
                </div>
                <!-- /btn-group -->
               <span class="text-link form-control">
                 共有({$info.gb_count})条留言&nbsp;&nbsp;<a class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px" href="{:url('admin/gb/index',array('uid'=> $info['user_id'],'view'=>1))}" data-name="管理会员{$info.user_name}的留言"><i class="fa fa-commenting-o"></i> 管理留言</a>   
                </span>     
              </div> 
              </div>
           <div class="col-md-6 col-sm-6 col-xs-6 mb15">
                 <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">云播：</span>
                </div>
                <!-- /btn-group -->
                 <span class="text-link form-control">
                 共有({$info.playlog_count})条记录&nbsp;&nbsp;<a class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px" href="{:url('admin/playlog/index',array('uid'=> $info['user_id'],'view'=>1))}" data-name="管理会员{$info.user_name}的记录"><i class="fa fa-commenting-o"></i> 管理播放</a>   
                </span> 
              </div> 
              </div>
           <div class="col-md-6 col-sm-6 col-xs-6 mb15">
                 <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">私信：</span>
                </div>
                <!-- /btn-group -->
                  <span class="text-link form-control">
                 共有({$info.msg_count})条记录&nbsp;&nbsp;<a class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px" href="{:url('admin/msg/index',array('uid'=> $info['user_id'],'view'=>1))}" data-name="管理会员{$info.user_name}的记录"><i class="fa fa-commenting-o"></i> 管理私信</a>   
                </span>                
              </div> 
              </div>                                    
              
              </div>  
              <!-- /.tab-content -->  
                                                                               
            </div>          
          <!-- /.row -->
        <div class="box-footer {notempty name=":request()->param('dialog')"}hidden{/notempty} layer-footer">
          <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">确定</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
               {notempty name=":request()->param('dialog')"}
               <button type="reset" class="btn btn-primary btn-embossed btn-close" onClick="layer.closeAll();"> 关闭</button>
               {/notempty}
            </div>
       </div>
       <!-- /.box-footer -->     
</form>
</div>
</div>
{include file="public/footer" /}
<!-- /.box-body -->    
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.config();	
	$(document).on("click", "#addscore", function (){										   
			$('.addscore').toggleClass("hidden");
    });	
			$(document).on("click", ".ajax-add-score", function() {
							alert($("#user_id").val())			
					if($("#add_score").val()!='' && $("#user_id").val()!=''){
						
						$.ajax({
							type: 'post',
							url: '{:url('addscore')}',
							data: {user_score:$("#add_score").val(), user_id:$("#user_id").val()},
							dataType: 'json',
							success: function(data){
								if(data.code == 1) {			   
								layer.msg(data.msg ? data.msg : '操作成功', {zIndex:layer.zIndex,icon: 1,time: 500});
								$("#score").val(data.data);
								}else{
								layer.confirm(data.msg ? data.msg : '操作失败', {zIndex:layer.zIndex,icon: 2,time: 2000});
								}

							}
						});
					}
				});	
				$(document).on("click", "#addviptime", function (){										   
				$('.addvip').toggleClass("hidden");
                });	
				$(document).on("click", ".ajax-add-day", function() {
					if($("#add-day").val()!='' && $("#user_id").val()!=''){
						$.ajax({
							type: 'post',
							url: 'user/addvip',
							data: {day:$("#add-day").val(), userid:$("#user_id").val(),viptime:$("#user_viptime").val(),score:$("#user_score").val()},
							dataType: 'json',
							success: function(data){
								if(data.rcode >= 1) {			   
								layer.msg(data.msg ? data.msg : '操作成功', {zIndex:layer.zIndex,icon: 1,time: 500});
								$("#viptime").val(data.data);
								$("#score").val(data.score);
								}else{
								layer.confirm(data.msg ? data.msg : '操作失败', {zIndex:layer.zIndex,icon: 2,time: 2000});
								}

							}
						});
					}
				});			
    zanpian.api.js('tpl/zanpianadmin/libs/jquery-cxselect/js/jquery.cxselect.js');	
		$.cxSelect.defaults.url = config.cms.tpl + "tpl/zanpianadmin/libs/jquery-cxselect/js/cityData.json";
        $.cxSelect.defaults.emptyStyle = 'none';
        $('#cxselect').cxSelect({
            selects: ['province', 'city', 'area']
        }); 	
	
});	
</script>	
</body>
</html>
